

<?php
      require_once 'config.php';
      require_once 'dbconnect.php';
      require_once 'activity.php';



/*
<--
 * LICENSE:
 *
 *   Copyright 2005 Matt Kubilus
 *
 *   This file is part of crimemap.
 *
 *   Crimemap is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   Crimemap is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with Crimemap; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-->
*/?>


<html>
<style type="text/css">
	#whole{
	width:90%;
  margin: auto;
  padding: 20px;
  border: 1px solid #666;
  background: #DDEEFF;
  min-height: 900px;
}

.floatright
{
float: right;
margin: 10px 0px 0px 10px;
border: 1px solid #666;
width:500px;
height:600px;

}
</style>

<div id="whole">
<head>
<!--[if gte IE 5.5000]>
<script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
   {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->

  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
  <title>St. Elmo Crime Map</title>


</head>
<body>

      <?php 
     
		include 'header.php'; 
		include 'users.php';

		session_start();

		if (!isset($_SESSION['userid'])) {
		   $_SESSION['userid'] = -1;
		} 
		
		if (isset($_GET['id']))
		{
			$id = $_GET['id'];
		}
		else
		{
			$id = 'home';
		}	


		//Determine Browser type

		if (preg_match("/opera/i",$_SERVER["HTTP_USER_AGENT"])) {
     			$browser = "opera";
 		} else if (preg_match("/gecko/i",$_SERVER["HTTP_USER_AGENT"])) {
     			$browser = "gecko";
		} else if (preg_match("/msie.[4|5|6]/i",$_SERVER["HTTP_USER_AGENT"])) {
	     		$browser = "ie";
 		} else if (preg_match("/nav/i",$_SERVER["HTTP_USER_AGENT"]) ||
 		preg_match("/Mozilla\/4\./", $_SERVER["HTTP_USER_AGENT"])) {
     			$browser = "netscape";
 		} else {
	     		$browser = "other";
 		}


		if($browser=="ie")
		{
			include 'ieBody.php';
		}
		else
		{
			include 'ieBody.php';
	//include 'netscapeBody.php';
		}
 
	  ?>

   </body>

</html>
